<?php
// app/api/service/payment/AlipayPayment.php
declare(strict_types=1);

namespace app\api\service\payment;

class AlipayPayment extends AbstractPayment
{
    public function __construct($orderModel)
    {
        $this->orderModel = $orderModel;
    }

    public function pay(array $order)
    {
        try {
            // TODO: 实现支付宝支付逻辑
            return [
                'pay_status' => 'pending',
                'pay_data' => []
            ];
        } catch (\Exception $e) {
            return $this->setError($e->getMessage());
        }
    }
}